
build:
	go build -trimpath -o sales-web main.go

build-win:
	CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -trimpath -o out/sales-web-windows main.go

build-linux:
	GOOS=linux GOARCH=amd64 go build -trimpath -o out/sales-web-linux main.go

build-web:
	cd front && npm run build
	rm -rf server/static/* && cp -r front/dist/* server/static

all: build-web build-linux